def unique(ilist):
    tmp = []
    for i in range(len(ilist)):
        try:
            tmp.index(ilist[i])
        except:
            tmp.append(ilist[i])
    return tmp


l1 = [1, 1, 2, 2]
print(l1, unique(l1))
